

package com.hazelcast.internal.partition;

import com.hazelcast.partition.MigrationListener;
import com.hazelcast.partition.PartitionEvent;
import com.hazelcast.partition.PartitionLostListener;

import java.util.EventListener;

/**
 * PartitionEventListener is a base interface for partition-related event listeners.
 *
 * @param <T> A partition-related event class
 * @see MigrationListener
 * @see PartitionLostListener
 */
public interface PartitionEventListener<T extends PartitionEvent> extends EventListener {

    void onEvent(T event);
}
